<!Doctype html>
<head></head>
<body>
	https://docs.microsoft.com/zh-cn/nuget/consume-packages/configuring-nuget-behavior
	<table>
		<thead>
			<tr>
				<th><span data-ttu-id="644ac-108">范围</span><span class="sxs-lookup"><span data-stu-id="644ac-108">Scope</span></span></th>
				<th><span data-ttu-id="644ac-109">NuGet.Config 文件的位置</span><span class="sxs-lookup"><span data-stu-id="644ac-109">NuGet.Config file location</span></span></th>
				<th><span data-ttu-id="644ac-110">描述</span><span class="sxs-lookup"><span data-stu-id="644ac-110">Description</span></span></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td><span data-ttu-id="644ac-111">项目</span><span class="sxs-lookup"><span data-stu-id="644ac-111">Project</span></span></td>
				<td><span data-ttu-id="644ac-112">当前文件夹（aka 项目文件夹）或上至驱动器根目录的任何文件夹。</span><span class="sxs-lookup"><span data-stu-id="644ac-112">Current folder (aka Project folder) or any folder up to the drive root.</span></span></td>
				<td><span data-ttu-id="644ac-113">在项目文件夹中，设置仅应用于该项目。</span><span class="sxs-lookup"><span data-stu-id="644ac-113">In a project folder, settings apply only to that project.</span></span> <span data-ttu-id="644ac-114">在包含多个项目子文件夹的父文件夹中，设置应用于这些子文件夹中的所有项目。</span><span class="sxs-lookup"><span data-stu-id="644ac-114">In parent folders that contain multiple projects subfolders, settings apply to all projects in those subfolders.</span></span></td>
			</tr>
			<tr>
				<td><span data-ttu-id="644ac-115">“用户”</span><span class="sxs-lookup"><span data-stu-id="644ac-115">User</span></span></td>
				<td><span data-ttu-id="644ac-116">Windows：<code>%appdata%\NuGet\NuGet.Config</code></span><span class="sxs-lookup"><span data-stu-id="644ac-116">Windows: <code>%appdata%\NuGet\NuGet.Config</code></span></span><br><span data-ttu-id="644ac-117">Mac/Linux：<code>~/.config/NuGet/NuGet.Config</code> 或 <code>~/.nuget/NuGet/NuGet.Config</code>（因 OS 版本而异）</span><span class="sxs-lookup"><span data-stu-id="644ac-117">Mac/Linux: <code>~/.config/NuGet/NuGet.Config</code> or <code>~/.nuget/NuGet/NuGet.Config</code> (varies by OS distribution)</span></span></td>
				<td><span data-ttu-id="644ac-118">设置应用于所有操作，但可被任何项目级的设置替代。</span><span class="sxs-lookup"><span data-stu-id="644ac-118">Settings apply to all operations, but are overridden by any project-level settings.</span></span></td>
			</tr>
			<tr>
				<td><span data-ttu-id="644ac-119">计算机</span><span class="sxs-lookup"><span data-stu-id="644ac-119">Computer</span></span></td>
				<td><span data-ttu-id="644ac-120">Windows：<code>%ProgramFiles(x86)%\NuGet\Config</code></span><span class="sxs-lookup"><span data-stu-id="644ac-120">Windows: <code>%ProgramFiles(x86)%\NuGet\Config</code></span></span><br><span data-ttu-id="644ac-121">Mac/Linux：<code>$XDG_DATA_HOME</code>。</span><span class="sxs-lookup"><span data-stu-id="644ac-121">Mac/Linux: <code>$XDG_DATA_HOME</code>.</span></span> <span data-ttu-id="644ac-122">如果 <code>$XDG_DATA_HOME</code> 的值是 null 或为空，将使用 <code>~/.local/share</code> 或 <code>/usr/local/share</code>（因 OS 版本而异）</span><span class="sxs-lookup"><span data-stu-id="644ac-122">If <code>$XDG_DATA_HOME</code> is null or empty, <code>~/.local/share</code> or <code>/usr/local/share</code> will be used (varies by OS distribution)</span></span></td>
				<td><span data-ttu-id="644ac-123">设置虽然适用于计算机上的所有操作，但会被任何用户级或项目级设置覆盖。</span><span class="sxs-lookup"><span data-stu-id="644ac-123">Settings apply to all operations on the computer, but are overridden by any user- or project-level settings.</span></span></td>
			</tr>
		</tbody>
	</table>
</body>
</html>
